package cn.edu.neusoft.demo.hospital2.Service;

import cn.edu.neusoft.demo.hospital2.pojo.Department;
import cn.edu.neusoft.demo.hospital2.pojo.dto.*;

import java.util.List;


// ... existing code ...
public interface DepartmentService {
    List<Department> getDepartments();
    Department getDepartmentById(int departmentId);
    int addDepartment(Department department);
    int updateDepartment(Department department);
    int deleteDepartment(int departmentId);

    List<DepartmentTreeDTO> getDepartmentTree();
    DepartmentDTO getDepartmentById(Integer id);
    boolean createDepartment(DepartmentCreateDTO dto);
    boolean updateDepartment(DepartmentUpdateDTO dto);
    boolean deleteDepartment(Integer id);
    List<DepartmentDTO> getAllDepartments();
    List<RoomDTO> getRoomsByDepartmentId(Integer departmentId);
    List<ClinicDTO> getClinicsByDepartmentId(Integer departmentId);
}
